<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>动漫搜索</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<meta name="renderer" content="webkit">
	<link href="${request.contextPath }/anime-web/statics/tp/css/layout.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${request.contextPath }/anime-web/statics/tp/js/jquery.js"></script>
	<script type="text/javascript" src="${request.contextPath }/anime-web/statics/tp/js/public.js"></script>
	<base target="_blank" />
</head>
<body>
	<jsp:include page="public.jsp" />
	<link href="${request.contextPath }/anime-web/statics/tp/css/topic.css" rel="stylesheet" type="text/css" />
	
	<style type="text/css">
		.plist02 li {
			height: 245px;
		}
	</style>
	
	<div class="content">
		<div class="warp">
			<div class="letter">
				<span class="letText l">字母索引</span> 
				<span class="l"> 
					<c:forEach items="${allClassify }" var="classify">
						<a target="_self" href="${request.contextPath }/anime-web/select/all/new/全部/${classify.id}/1">${classify.name }</a>
					</c:forEach> 
				</span>
			</div>
		</div>
		<div class="warp">
			<div class="w720 l">
				<div class="bread">
					<span> 共 <em>${animeBySearch.totalRecords }</em> 条动漫
					</span> 搜索关键字 <strong class="red">${search_text }</strong>
				</div>
				<div class="box02 l" style="border-top: none;">
					<ul class="plist02 clearfix" style="width: 718px;">
						<c:forEach items="${animeBySearch.resultList }" var="anime">
							<li>
								<a href="${request.contextPath }/anime-web/detail/${aniome.id}"> 
									<img src="${anime.shortpic }">
									<span>${anime.status }</span>
									<p>${anime.name }</p>
								</a>
							<div class="info">
								下载：${anime.downcount} <br/> 
								类型：连载动漫 <br/> 
								地区：${anime.location }
							</div>
						</c:forEach>
					</ul>
					<div class="pages">
						<a target="_self" class="a1">${animeBySearch.totalRecords }条</a> 
						<a target="_self" href="${request.contextPath }/anime-web/serial/${search_text }/${animeBySearch.currentPage-1<1?1:animeBySearch.currentPage-1}" class="a1">上一页</a> 
						<c:forEach begin="${animeBySearch.beginPageNum }" end="${animeBySearch.endPageNum }" var="pagenum">
							<c:choose>
								<c:when test="${pagenum == animeBySearch.currentPage }">
									<span>${animeBySearch.currentPage }</span> 
								</c:when>
								<c:otherwise>
									<a target="_self" href="${request.contextPath }/anime-web/search/${search_text }/${pagenum }">${pagenum }</a>
								</c:otherwise>
							</c:choose>
						</c:forEach> 
						<a target="_self" href="${request.contextPath }/anime-web/search/${search_text }/${animeBySearch.currentPage+1>animeBySearch.totalPage?animeBySearch.totalPage:animeBySearch.currentPage+1}" class="a1">下一页</a>
						
						<select onchange="location.href=this.options[this.selectedIndex].value;" style="width: 70px" name="sldd">
							<c:forEach begin="1" end="${animeBySearch.totalPage }" var="pagenum">
								<c:choose>
									<c:when test="${pagenum==animeBySearch.currentPage }">
										<option selected="selected" value="${request.contextPath }/anime-web/search/${search_text }/${pagenum }">${pagenum }</option>
									</c:when>
									<c:otherwise>
										<option value="${request.contextPath }/anime-web/search/${search_text }/${pagenum }">${pagenum }</option>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</select>
					</div>
				</div>
			</div>
			<div class="w260 r">
				<div class="box01 l">
					<div class="hd b2red phItem" id="tabph">
						<h2>动漫排行</h2>
						<ul>
							<li class="current"><a onmousemove="secBoard('tabph','tabphcon',1);">总榜</a></li>
							<li class="normal"><a onmousemove="secBoard('tabph','tabphcon',2);">本周</a></li>
							<li class="normal"><a onmousemove="secBoard('tabph','tabphcon',3);">本月</a></li>
						</ul>
					</div>
					<div class="tabphcon">
						<div class="current" id="tabphcon_1">
							<ul class="c_ph">
								<c:forEach items="${animeRankAllList }" var="anime" varStatus="status">
									<li>
										<c:choose>
											<c:when test="${status.count>3 }">
												<em>${status.count }</em>
											</c:when>
											<c:otherwise>
												<em class="top">${status.count }</em> 
											</c:otherwise>
										</c:choose>
										<span>${anime.downcount }</span> 
										<a href="${request.contextPath }/anime-web/detail/${anime.id }">${anime.name }</a>
									</li>
								</c:forEach>
							</ul>
						</div>
						<div class="normal" id="tabphcon_2">
							<ul class="c_ph">
								<c:forEach items="${animeRankOfWeekList }" var="anime" varStatus="status">
									<li>
										<c:choose>
											<c:when test="${status.count>3 }">
												<em>${status.count }</em>
											</c:when>
											<c:otherwise>
												<em class="top">${status.count }</em> 
											</c:otherwise>
										</c:choose>
										<span>${anime.downcount }</span> 
										<a href="${request.contextPath }/anime-web/detail/${anime.id }">${anime.name }</a>
									</li>
								</c:forEach>
							</ul>
						</div>
						<div class="normal" id="tabphcon_3">
							<ul class="c_ph">
								<c:forEach items="${animeRankOfMonthList }" var="anime" varStatus="status">
									<li>
										<c:choose>
											<c:when test="${status.count>3 }">
												<em>${status.count }</em>
											</c:when>
											<c:otherwise>
												<em class="top">${status.count }</em> 
											</c:otherwise>
										</c:choose>
										<span>${anime.downcount }</span> 
										<a href="${request.contextPath }/anime-web/detail/${anime.id }">${anime.name }</a>
									</li>
								</c:forEach>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<%-- <div class="footer">
		<div class="warp">
			﻿
			<div class="footerHots" style="width: 581px;">
				<a title="红旅动漫网" href="http://www.hltm.cc/"> <strong>红旅动漫网</strong></a>
				<a title="海贼王下载" href="http://www.hltm.cc/view/972.html">海贼王下载</a> <a
					title="火影忍者下载" href="http://www.hltm.cc/view/1018.html">火影忍者下载</a>
				<a title="歌之王子殿下第三季" href="http://www.hltm.cc/view/12143.html">歌之王子殿下第三季</a>
				<a title="飙速宅男第二季" href="http://www.hltm.cc/view/12013.html">飙速宅男第二季</a>
				<a title="对学生会长的忠告" href="http://www.hltm.cc/view/1067.html">对学生会长的忠告</a>
			</div>
			<div class="copyright">
				本站的 <a href="http://www.hltm.cc/"> <strong>日本动漫</strong>
				</a> 由网络第三方视频类网站收集，本站不存在任何视频文件及视频镜像。如视频原作者不愿意在本网站刊登或违规<br>请及时联系：hltm@foxmail.com，予以删除。
				<br> &copy; 2011-2014. All Rights Reserved 苏ICP备11029620号-2
				<script src="http://s4.cnzz.com/stat.php?id=2311674&web_id=2311674" language="JavaScript"></script>
				<script src="${request.contextPath }/anime-web/gg/tj2.js"></script>
				<script src="${request.contextPath }/anime-web/gg/tj.js"></script>
			</div>
			<a id="returnTop" href="javascript:;">回到顶部</a>
			<script src="${request.contextPath }/anime-web/statics/tp/js/top.js" type="text/javascript"></script>
		</div>
	</div> --%>
</body>
</html>